﻿using MyDb.DoMain.DbContext;
using MyDb.DoMain.Entity.DbEntity;
using MyDb.DoMain.Interface;

namespace MyDb.DoMain.Service
{
    public class LogService: ILogService
    {
        /// <summary>
        /// 添加实体
        /// </summary>
        public Log4Net AddLog4Net(Log4Net log4Net)
        {
            using (var dbContext = new MyDbContext())
            {
                var model = dbContext.Insert(log4Net);
                return model;
            }
        }
    }
}
